package com.gxa.ssm251.pojo;


import lombok.*;

import java.io.Serializable;
import java.sql.Date;
import java.sql.Timestamp;
import java.util.List;

@Data// (@Getter @Setter @ToString)
@NoArgsConstructor
@AllArgsConstructor
//@Cleanup
//@SneakyThrows
public class User implements Serializable {
    private Integer id;
    private String name;
    private String password;
    private String gender;
    private String phone;
    private Timestamp birth;
    private  Timestamp regTime;

    private List<Coupon> cpnList;

    private List<Role> roleList;

    public User(String name) {
        this.name = name;
    }

//    public User(java.util.Date birth) {
//        this.birth = birth;
//    }
//
//    public User(java.util.Date birth, Date regTime) {
//        this.birth=birth;
//        this.regTime= regTime;
//    }
}